The `element-type` annotation is for GList and GSList only, and turns
out adding support for GListModel in gobject-introspection breaks Vala
and the GIR for GIO.
Instead of using `element-type`, we can use the `attributes` annotation,
which is ignored by code generators based on the GIR data.
* callbacks that might destroy the widgets or add new ones, be aware that
* the list of toplevels will change and emit the "items-changed" signal.
*
- * Returns: (element-type GtkWidget) (transfer none): the list of toplevel widgets
+ * Returns: (transfer none) (attributes element-type=GtkWindow): the list
+ * of toplevel widgets
*/
GListModel *
gtk_window_get_toplevels (void)